Add some bindings to testgtk.css for testing
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 28 Jan 2011 10:05:01 +0000 (11:05 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 31 Jan 2011 02:24:52 +0000 (21:24 -0500)
tests/testgtk.css

index 24ed65547cd7326863f6c34b4bd136ed87fd492d..f1207f72a1f9f970994716852f3f474bd36e9e4c 100644 (file)
@@ -1,6 +1,11 @@
 /* testgtk2.css sets all the buttons in the main window to blue by default */
 @import url("testgtk2.css");
 
+@binding-set entry-bindings {
+    bind "<alt>s" { "move-cursor" (visual-positions, 3, 0) };
+    bind "<alt>a" { "move-cursor" (visual-positions, -3, 0) };
+};
+
 * {
     -GtkButton-child-displacement-x: 1;
     -GtkButton-child-displacement-y: 1;
@@ -31,3 +36,7 @@ GtkLabel:prelight {
 #main_window GtkScrolledWindow GtkButton:prelight {
     background-color: rgb (0%, 75%, 0);
 }
+
+GtkEntry {
+    gtk-key-bindings: entry-bindings;
+}